package com.bjsxt.order.controller;

import com.bjsxt.order.service.OrderService;
import com.livegoods.commons.vo.LivegoodsResult;
import com.netflix.discovery.converters.Auto;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName : OrderController
 * @Description :
 * @Author : ZWZ
 * @Date: 2021/8/27 18:07
 */
@RestController
@CrossOrigin
public class OrderController {

    @Autowired
    private OrderService orderService;

    @GetMapping("/order")
    public LivegoodsResult getOrders(String user) {
        return orderService.getOrders(user);
    }

}
